/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fql;

import com.restfb.Facebook;
import com.restfb.json.JsonStringer;

public class FqlEvent {
  @Facebook
  String creator;

  @Facebook
  String eid;
  
  @Facebook
  String name;
  
  @Facebook
  String description;
  
  @Facebook
  String location;
  
  @Facebook
  String venue;
  
  @Facebook
  String start_time;
  
  @Facebook
  String end_time;

  @Override
  public String toString() {
    return String.format("%s: %s %s <br>", eid, name, location);
  }
  public String getName(){
      return name;
  }
  public String getLocation() {
    return location;
  }
  public String getEid(){
      return eid;
  }
  
  public String getCreator(){
      return creator;
  }
  public String toJson(){
      String json = new JsonStringer()
      .object()
      .key("name")
      .value(name)
      .key("description")
      .value(location)
      .key("location")
      .value(location)
      .key("venue")
      .value(venue)
      .key("start_time")
      .value(start_time)
      .key("end_time")
      .value(end_time)
      .endObject()
      .toString();
      return json;
  }
    
}
